import {View} from "@tarojs/components";
import {useEffect} from "react";
import Taro from "@tarojs/taro";
import './index.scss'

export default ()=>{

  const {router} = Taro.getCurrentInstance()
  useEffect(() => {
    Taro.openLocation({
      latitude: parseFloat(router.params.lat),
      longitude: parseFloat(router.params.lng),
      scale: 18,
      name: Taro.getStorageSync('selectMerchant').cinemaNickName,
      address: Taro.getStorageSync('selectMerchant').address,
    })
  }, []);

  return (
    <View></View>
  )
}
